// /*
//  * @Author: ws
//  * @Date: 2024-12-30 11:52:05
//  * @email: 458658538@qq.com
//  * @LastEditors: ws
//  * @LastEditTime: 2024-12-30 11:53:44
//  * @Description:
//  */
import fs from 'fs-extra'
// import Conf from 'conf'
const __rootPath = process.cwd()
const {
  name,
  version,
  repository: { url },
} = fs.readJsonSync(`${__rootPath}/package.json`)

// const gitlabBaseUrl = 'http://gitlab.internal.daspatial.com/api/v4';

// type Config = {
//   jenkins_base_url?: string
//   gitlab_base_url?: string
// }

// const appConfig = new Conf<Config>({
//   projectName: name,
// })
// const projectConfig = new Conf<Config>({
//   cwd: process.cwd(),
//   configName: 'w-cli',
//   schema: {
//     gitlab_base_url: {
//       default: 'http://gitlab.internal.daspatial.com/api/v4',
//     },
//   },
// })
export {
  __rootPath as workingDir,
  name as packageName,
  version as packageVersion,
  url as repositoryUrl,
  // appConfig,
  // projectConfig,
}
